import request from "@/utils/request";

// 获取交易页信息
export const reqGetTradeInfo = () => {
  return request({
    method: "get",
    url: `/order/auth/trade`,
  });
};
// 提交订单
export const reqSubmitOrder = ({ tradeNo, ...data }) => {
  return request({
    method: "post",
    url: `/order/auth/submitOrder`,
    params: {
      // 携带query查询字符串参数
      tradeNo,
    },
    data, // 携带请求体参数
  });
}
// 获取订单二维码
 export const reqPayPictrue = (orderId)=>{
  return request({
    method:"get",
    url:`/payment/weixin/createNative/${orderId}`
  })
 }
//  查询订单支付状态
export const reqPaycircle = (orderId)=>{
  return request({
    method:"get",
    url:`/payment/weixin/createNative/${orderId}`
  })
 }
//  获取订单页支付信息
export const payInfo = (page,limit)=>{
  return request({
    url:`/order/auth/${page}/${limit}`,
    method:"get"

  })
}